package com.sxhalo.fsms.mapper;

import com.sxhalo.fsms.domain.DeviceLinkageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeviceLinkageRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DeviceLinkageRecord record);

    int insertSelective(DeviceLinkageRecord record);

    DeviceLinkageRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DeviceLinkageRecord record);

    int updateByPrimaryKey(DeviceLinkageRecord record);
    int getCount(@Param("where")String where);

    List<DeviceLinkageRecord> findWhereList(@Param("where")String where, @Param("order")String order);

    List<DeviceLinkageRecord> findPagerList(@Param("start")Integer start, @Param("length")Integer length, @Param("where")String where, @Param("order")String order);
    int batchInsert(@Param("list")List<DeviceLinkageRecord> list);
    int deleteByWhere(@Param("where")String where);
}